package org.example.Thread;

/**
 * Created with IntelliJ IDEA.
 * Description:最基本创建线程的办法
 * User:Lenovo
 * Date:2022-03-21
 * Time:10:40
 */
class MyThread extends java.lang.Thread {
    @Override
    public void run() {
        System.out.println("hello thread");
    }
}
public class Demo1 {
    public static void main(String[] args) {
        java.lang.Thread t = new MyThread();
        t.start();
    }
}
